#include<bits/stdc++.h>
using namespace std;

// 高精度加法
string add(string s1, string s2) {
	if (s1.size() < s2.size()) {
		swap(s1, s2);
	}
	int len1 = s1.size();
	int len2 = s2.size();
	int carry = 0;
	string res = "";
	for (int i = 1; i <= len1; i++) {
		carry += s1[len1 - i] - '0';
		if (i <= len2) {
			carry += s2[len2 - i] - '0';
		}
		res = char(carry % 10 + '0') + res;
		carry /= 10;
	}
	if (carry != 0) {
		res = char(carry + '0') + res;
	}
	return res;
}

void aplusb() {
	string s1, s2;
	cin >> s1 >> s2;
	string result = add(s1, s2);
	cout << s1 << " + " << s2 << " = " << result << endl;
}

int main() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cout << "Case " << i << ": ";
		aplusb();
		if (i != n) {
			cout << endl << endl;
		}
	}
	return 0;
}
